package view;

import java.awt.Dimension;
import java.awt.Rectangle;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JDesktopPane;
import javax.swing.JFrame;
import javax.swing.JInternalFrame;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.WindowConstants;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class JInternalFrameModificarCliente extends javax.swing.JInternalFrame {
	private JTextField jTextField1;
	private JTextField txtCUIT;
	private JTextField txtRazonSocial;
	private JLabel lblCUIT;
	private JLabel lblDNI;
	private JLabel lblTelefono;
	private JTextField txtDomicilio;
	private JTextField txtTelefono;
	private JLabel lblDescuentos;
	private JButton btnAceptar;
	private JLabel jLabel2;
	private JButton jButton1;
	private JButton btnCancelar;
	private JTextField jTextField2;
	private JLabel lblNombre;
	private JTextField txtDescuentos;
	private JLabel lblContacto;
	private JTextField txtContacto;
	private JLabel jLabel1;

	/**
	* Auto-generated main method to display this 
	* JInternalFrame inside a new JFrame.
	*/
		
	public JInternalFrameModificarCliente() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setPreferredSize(new Dimension(400, 300));
			this.setBounds(0, 0, 400, 300);
			setVisible(true);
			this.setTitle("Modificacion Cliente");
			getContentPane().setLayout(null);
			this.setSize(400, 400);
			{
				jTextField1 = new JTextField();
				getContentPane().add(jTextField1);
				jTextField1.setBounds(192, 246, 166, 21);
			}
			{
				jLabel1 = new JLabel();
				getContentPane().add(jLabel1);
				jLabel1.setText("Condiciones Venta nuevas: ");
				jLabel1.setBounds(29, 250, 162, 14);
			}
			{
				txtContacto = new JTextField();
				getContentPane().add(txtContacto);
				txtContacto.setBounds(192, 150, 166, 21);
			}
			{
				lblContacto = new JLabel();
				getContentPane().add(lblContacto);
				lblContacto.setText("Contacto nuevo:");
				lblContacto.setBounds(29, 154, 151, 14);
			}
			{
				txtDescuentos = new JTextField();
				getContentPane().add(txtDescuentos);
				txtDescuentos.setBounds(191, 282, 166, 21);
			}
			{
				lblDescuentos = new JLabel();
				getContentPane().add(lblDescuentos);
				lblDescuentos.setText("Descuentos nuevos: ");
				lblDescuentos.setBounds(29, 282, 129, 21);
			}
			{
				txtTelefono = new JTextField();
				getContentPane().add(txtTelefono);
				txtTelefono.setBounds(192, 213, 166, 21);
			}
			{
				txtDomicilio = new JTextField();
				getContentPane().add(txtDomicilio);
				txtDomicilio.setBounds(192, 180, 166, 21);
			}
			{
				txtCUIT = new JTextField();
				getContentPane().add(txtCUIT);
				txtCUIT.setBounds(149, 12, 222, 21);
				txtCUIT.setText("Ingrese CUIT de cliente a modificar");
			}
			{
				txtRazonSocial = new JTextField();
				getContentPane().add(txtRazonSocial);
				txtRazonSocial.setBounds(192, 123, 166, 21);
			}
			{
				lblTelefono = new JLabel();
				getContentPane().add(lblTelefono);
				lblTelefono.setText("Telefono nuevo: ");
				lblTelefono.setBounds(29, 217, 151, 14);
			}
			{
				lblDNI = new JLabel();
				getContentPane().add(lblDNI);
				lblDNI.setText("Domicilio nuevo: ");
				lblDNI.setBounds(29, 184, 151, 14);
			}
			{
				lblCUIT = new JLabel();
				getContentPane().add(lblCUIT);
				lblCUIT.setText("CUIT: ");
				lblCUIT.setBounds(73, 15, 73, 14);
			}
			{
				lblNombre = new JLabel();
				getContentPane().add(lblNombre);
				lblNombre.setText("Razon social nueva: ");
				lblNombre.setBounds(29, 127, 151, 14);
			}
			{
				btnAceptar = new JButton();
				getContentPane().add(btnAceptar);
				btnAceptar.setText("Verificar");
				btnAceptar.setBounds(137, 45, 92, 27);
			}
			{
				jTextField2 = new JTextField();
				getContentPane().add(jTextField2);
				jTextField2.setBounds(192, 94, 166, 21);
			}
			{
				jLabel2 = new JLabel();
				getContentPane().add(jLabel2);
				jLabel2.setText("CUIT nuevo: ");
				jLabel2.setBounds(29, 98, 151, 14);
			}
			{
				btnCancelar = new JButton();
				getContentPane().add(btnCancelar);
				btnCancelar.setText("Cancelar");
				btnCancelar.setBounds(209, 331, 107, 26);
				btnCancelar.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent evt) {
						dispose();
					}
				});
			}
			{
				jButton1 = new JButton();
				getContentPane().add(jButton1, "Center");
				jButton1.setText("Aceptar");
				jButton1.setBounds(73, 331, 98, 26);
				jButton1.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent evt) {
						//	Sistema.getInstancia().altaCliente(txtCodigo.getText(), txtCondVta.getText(), txtCUIT.getText(), txtDescuentos.getText(), txtDomicilio.getText(), txtRazonSocial.getText(), txtTelefono.getText());
					}
				});
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
